<div ng-controller="userArticleCtrl">
    <div class="page-header inner">
        <a class="pure-button list-model right" title="{{parent.sumModel?'摘要模式':'简洁模式'}}" ng-if="!global.isPocket" ng-class="{'info-bg':parent.sumModel}" ng-click="setListModel()"><i class="fa fa-th-large"></i></a>
        <strong>{{parent.title}}</strong>
    </div>
    <ul class="media-list">
        <li class="media" ng-repeat="article in articleList">
            <a class="media-object left" title="删除文章" ng-show="article.isAuthor||global.isEditor" ng-click="remove(article)">
                <i class="fa fa-trash-o"></i>
            </a>
            <div class="media-body" id="{{article._id}}" ng-class="{muted: article.read}">
                <div class="media-header">
                    <a ng-href="{{'/'+article._id}}">
                        <i class="primary" ng-class="{'fa fa-hand-o-up':article.status==2, 'fa fa-external-link':article.status!=2}" ng-hide="article.isAuthor"></i>{{article.title}}</a>
                    <i ng-show="article.status==1" class="fa fa-thumbs-up hot" title="推荐"></i>
                    <a class="pure-button pure-button-link" ng-href="{{'/'+article._id+'/edit'}}" ng-show="isMe"><i class="fa fa-edit"></i></a>
                    <i class="fa fa-star-o right hot hover-icon" title="热度" ng-show="!global.isPhone">{{article.hots}}</i>
                </div>
                <div class="media-content list-content" ng-show="parent.sumModel" gen-parse-md="article.content"></div>
                <div class="media-footer">
                    <a ng-href="{{'/'+article.author._id}}"><i class="fa fa-pencil success"></i>{{article.author.name}}</a>
                    <i class="fa fa-clock-o" title="{{article.date | formatDate:true}}发布"> {{article.date | formatDate}}</i>
                    <i class="fa fa-refresh" title="{{article.updateTime | formatDate:true}}更新"> {{article.updateTime | formatDate}}</i>
                    <i class="fa fa-comments-o" title="评论" ng-show="article.comments"> {{article.comments}}</i>
                    <a ng-repeat="tag in article.tagsList" ng-href="{{'/'+tag._id}}" class="pure-button pure-button-link">{{tag.tag}}</a>
                </div>
            </div>
        </li>
    </ul>
    <p class="inner" ng-show="articleList.length==0">暂无</p>
    <div gen-pagination="pagination"></div>
    <div gen-modal="removeArticleModal">确定要删除文章《{{removeArticle.title}}》？</div>
</div>
